﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukous.Search
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISearchResultItem
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        T Id<T>();

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="id"></param>
        ISearchResultItem Id<T>(T id);

        /// <summary>
        /// 获取 底层对象
        /// </summary>
        object UnderlayerObject { get; }
    }
}
